package ssm.service;

import ssm.pojo.User;

import java.util.List;

/**
 * Author: silence
 * Date: 17-5-26
 */
public interface IUserService {
    User getUserById(int userId);

    List<User> findAllByQuery();

    String insert(User record);

    void addUser(User user);

    User findUserByUsername(String username);

    int updateByPrimaryKey(User user1);

    void deleteByPrimaryKey(Integer id);

    List<User> selectPageList(Integer startpage, Integer sizelist);

    Integer count();
}
